class Wife:
    def __init__(self, name, age):
        self.name = name
        self.age = age

    def __str__(self):
        """
            返回给人看
        :return:
        """
        return "奴家叫：%s,年芳%d" % (self.name, self.age)

    def __repr__(self):
        """
            返回给解释器看
        :return:
        """
        return 'Wife("%s", %d)' % (self.name, self.age)


w01 = Wife('zs', 25)
print(w01)

w02 = eval(w01.__repr__())
print(w02)

w01.name = '莲莲'
print(w02)
